// 特殊装备相关API
import { request } from './request'

// 获取特殊装备列表
export function listSpecialEquipments(data = {}) {
  return request({
    url: '/special-equipment/list',
    method: 'post',
    data
  })
}

// 获取/抽取特殊装备
export function acquireSpecialEquipment(data) {
  // data: { type: 1-4, tier: 1-9, name_index?: number }
  return request({
    url: '/special-equipment/acquire',
    method: 'post',
    data
  })
}

// 穿戴特殊装备
export function equipSpecialEquipment(data) {
  // data: { type: 1-4 }
  return request({
    url: '/special-equipment/equip',
    method: 'post',
    data
  })
}

// 卸下特殊装备
export function unequipSpecialEquipment(data) {
  // data: { type: 1-4 }
  return request({
    url: '/special-equipment/unequip',
    method: 'post',
    data
  })
}

export default {
  listSpecialEquipments,
  acquireSpecialEquipment,
  equipSpecialEquipment,
  unequipSpecialEquipment
}